from django.contrib import admin
from django.urls import path
from .views import *
from rest_framework_jwt.views import obtain_jwt_token
urlpatterns=[
  path('v1/register/', RegisterView.as_view(), name='register'),  # 注册用户
  path('v1/login/', obtain_jwt_token, name='login'),  # 用户登录后返回token
  path('v1/list/', UserList.as_view(), name='register'),  # 测试需要携带token才能访问
  path('v1/tokens/', TokenSee.as_view(), name='register'),  # 测试需要携带token才能访问
  path('v1/notoken/', NoTokenSee.as_view(), name='register'),  # 测试无token访问状态
  path('v1/usershow/', UserShow.as_view(), name='register'),  # 展示登录用户个人信息
]
